package com.cby.third.sample

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.cby.third.cases.pdf.PdfView

/**
 * @description: PdfViewActivity
 *
 * @author ChenBaoyang
 * @date 2021/12/1 16:29
 */
class PdfViewActivity : AppCompatActivity() {

    private lateinit var pdfView: PdfView

    private val pdfUrl = "https://www.gjtool.cn/pdfh5/git.pdf"
    private val pdfPath = "sample.pdf"

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_pdf_view)
        pdfView = findViewById(R.id.pdf_view)

        pdfView.loadOnlinePdf(pdfUrl)
    }
}